
<%@ page import="projetstackoverflow.Tag" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'tag.label', default: 'Tag')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<div id="list-tag" class="content" role="main">
			<h1><g:message code="tag.list.label" /></h1>
			<g:each var="tag" in="${tagInstanceList }">
				<div class="element-tag"><div class="tag"><g:link controller="question" action="list" params="${['idTag':tag.id]}">${tag.value}</g:link></div>${' x'+ tag.questions.size()} </div>
			</g:each>
		</div>
		<div class="pagination">
			<g:paginate total="${tagInstanceTotal}" />
		</div>
	</body>
</html>
